﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project7
{
    public   class DeptPageClass
    {
        public  static void ShowDeptPage() {
            Console.WriteLine("*部门管理系统*");

            Console.WriteLine("  1.新增部门");

            Console.WriteLine("  2.部门列表");

            Console.WriteLine("  3.返回主页");
            Console.WriteLine("**************");
            WriteIn();
        }

        private static void WriteIn()
        {
            Console.Write("请选择模块代码：");
            string mid = Console.ReadLine();
            switch (mid)
            {
                case "1":
                    Console.Write("请输入修改部门编号");
                    int deptId = int.Parse(Console.ReadLine());
                    ShowAddDept(deptId);
                    break;
                case "2":
                    break;
                case "3":
                    break;
                default:
                    Console.WriteLine($"模块代号错误{mid}");
                    WriteIn();
                    break;
            }

        }

        private static void ShowAddDept(int deptId) { 
        
        }
    }
}
